package com.literature.threeGroup.mapper;

import com.github.pagehelper.Page;
import com.literature.threeGroup.pojo.Order;
import com.literature.threeGroup.pojo.OrderExample;
import java.util.List;

import com.literature.threeGroup.pojo.ResourceUpdate;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Component
public interface OrderMapper {
    long countByExample(OrderExample example);

    int deleteByExample(OrderExample example);

    int deleteByPrimaryKey(String id);

    int insert(Order record);

    int insertSelective(Order record);

    List<Order> selectByExample(OrderExample example);

    Order selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") Order record, @Param("example") OrderExample example);

    int updateByExample(@Param("record") Order record, @Param("example") OrderExample example);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);

    List<Order> FindYear(@Param("year") String year);

    List<Order> findAll(@Param("format") String format);

    void updateOrder(@Param("review") String review, @Param("id") String id);


    void updateState(@Param("state") String state, @Param("id") String id);


    List<Order> auditList();

    List<Order> selectYear();

    List<Order> xtdingAll(@Param("year") String year, @Param("type") String type);

    List<Order> getTypes();

    void updateDiscontinueData(@Param("format") String format, @Param("id") String id);

    List<Order> getDiscontinue();

    List<Order> getNotArrivedForThreeYears(int i);

    List findOrderList();

    Order findOrderId(String id);

    Page<ResourceUpdate> findOrderList1(Order order);
}